package com.effectiv.gooruda.rest.api.domain;

import java.util.Date;

import javax.validation.constraints.Pattern;

import com.effectiv.gooruda.rest.docs.core.annotation.ApiObject;
import com.effectiv.gooruda.rest.docs.core.annotation.ApiObjectField;

import lombok.Getter;
import lombok.Setter;

@ApiObject(name="Profile", description="User profile details.")
public class Profile extends PesistentBase{
	
	
	private static final long serialVersionUID = 1L;
	
	@ApiObjectField(description="First name.")
	@Getter
	@Setter
	private String firstName;
	
	@ApiObjectField(description="Middle name.")
	@Getter
	@Setter
	private String middleName;
	
	@ApiObjectField(description="Last name.")
	@Getter
	@Setter
	private String lastName;
	
	@ApiObjectField(description="Gender.")
	@Getter
	@Setter
	private String gender;
	
	@ApiObjectField(description="Date of Birth.", format="yyyy-MM-dd")
	@Getter
	@Setter
	private Date dateOfBirth;
	
	@ApiObjectField(description="Salutation", format="yyyy-MM-dd")
	@Getter
	@Setter
	private String salution;
	
	@Pattern(regexp="(^$|[0-9]{10})")
	@ApiObjectField(description="Mobile number - 10 digit and only digits allowed")
	@Getter
	@Setter
	private String mobile;
	
	@ApiObjectField(description="Home phone number")
	@Getter
	@Setter
	private String homePhone;
	
	@ApiObjectField(description="Office phone number")
	@Getter
	@Setter
	private String officePhone;
	
}
